/* jshint indent: 2 */

module.exports = function(sequelize, DataTypes) {
  return sequelize.define('iframe_rule', {
    RuleID: {
      type: DataTypes.INTEGER(11),
      allowNull: false,
      primaryKey: true,
      autoIncrement: true
    },
    RuleName: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    RuleInfo: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    RuleAble: {
      type: DataTypes.TEXT,
      allowNull: true
    },
    RuleOrgID: {
      type: DataTypes.INTEGER(11),
      allowNull: true,
      defaultValue: '0'
    },
    RulePartnersID: {
      type: DataTypes.INTEGER(11),
      allowNull: true,
      defaultValue: '0'
    },
    RuleDataDegreeCode: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    RuleCustomDataDegree: {
      type: DataTypes.STRING(255),
      allowNull: true,
      defaultValue: ''
    }
  }, {
    tableName: 'iframe_rule'
  });
};
